import axios from '../axios'
export default{
    // 管理员登录
    adminsLogin(data){
        return axios({
            url: "/login/adminsLogin",
            method:'post',
            data
        })
    },
    // 管路员登录验证
    validate(data){
        return axios({
            url: "/login/validate",
            method:'post',
            data
        })
    },

    // 销售员登录
    salesMenLogin(data){
        return axios({
            url: "/login/salesMenLogin",
            method:'post',
            data
        })
    },
    getUserInfo(data) {
        return axios({
            url: "/login/getUserInfo",
            method: 'post',
            data
        })
    }
}
